/*
 * @Description  :
 * @Version      : 0.1
 * @Company      : V-Think Development Team
 * @Author       : KiraVerSace@yeah.net
 * @Date         : 2024-12-23 14:44:26
 */
#include <xCode.h>
#include <xCommon.h>

#include <appModbus.h>
#include <appPeriphRun.h>
#include <appPhaseFollow.h>
#include <appWatchdog.h>

void setup()
{
    xCommonInit();

    xTaskCreate(periphRunTask,   "periphRun",   2048, NULL, 1, &periphRunTaskHandle);
    xTaskCreate(modbusSlaveTask, "modbusSlave", 2048, NULL, 2, &modbusSlaveTaskHandle);
    xTaskCreate(phaseFollowTask, "phaseFollow", 2048, NULL, 1, &phaseFollowTaskHandle);
    xTaskCreate(watchdogTask,    "watchdog",     512, NULL, 3, &watchdogTaskHandle);

    vTaskStartScheduler();
}

void loop()
{
    // Empty. Things are done in Tasks.
}


